cmake_minimum_required(VERSION 3.9)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/mongoose)
link_directories(${CMAKE_BINARY_DIR}/common/utils)

set(BASE_FILES
        mongoose/mongoose.c
        mongoose/mongoose.h
        src/busserver.c
        src/busserver.h
        src/busserver_ex.c
        src/busserver_ex.h
        )

add_library(busserver STATIC ${BASE_FILES})

add_executable(busserver_test
        ${BASE_FILES}
        src/main.c
        )

target_link_libraries(busserver_test
        utils
        pthread
)       